var express = require('express')
var router = express.Router()
const MainController = require('../controller/mainController')

/* GET users listing. */
router.get('/', function (req, res, next) {
  res.send('respond with a resource')
})

//根据商品名称模糊查询指定供应商、指定支付状态的账单列表
router.get('/getBillList', MainController.getBillList)
//修改账单路由
router.put('/updateBillById', MainController.updateBillById)
//根据id查找账单信息
router.get('/getBillById', MainController.getBillById)
//添加账单
router.post('/createBill', MainController.createBill)
//删除账单
router.delete('/deleteBillById', MainController.deleteBillById)
//根据订单编号查找订单
router.get('/getBillByBillCode', MainController.getBillByBillCode)
module.exports = router
